#include <stdio.h>
#include <stdlib.h>

int main() {
    int op;
    double num1, num2, result;
    printf("Enter calculation:\n\n");
    scanf("%lf %c %lf", &num1, &op, &num2);

    switch (op) {
        case '+':
            result = num1 + num2;
            break;
        case '-':
            result = num1 - num2;
            break;
        case '*':
            result = num1 * num2;
            break;
        case '/':
            result = num1 / num2;
            break;
        default:
            printf("Failed!!\n");
            exit(1);
    }

    printf("%.3lf %c %.3lf = %.3lf\n", num1, op, num2, result);

    return 0;
}